This phrase means that someone gives up or loses something valuable (such as a person, opportunity, or principle) in order to achieve or pursue something else, often implying that the loss is significant or tragic. The 'altar' metaphor suggests a ritualistic or solemn offering, highlighting the gravity of the sacrifice.